package com.yunjinsuke.recharge.controller.api;


public enum APIEnum {
    /**
     * 正常情况，无msg信息
     */
    OK(0, null),

    /**
     * 无效请求
     */
    INVALID_REQUEST(9002, ""),

    /**
     * 系统错误
     */
    INNER_ERROR(9004, "server error");

    private int code;
    private String msg;

    APIEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
